package com.youlu.campus.entity.kuaidi100;

import com.kuaidi100.sdk.response.SubscribeResp;
import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 推送快递100失败定时回滚补偿
 */
@Data
@Document(collection = "kuai_di_100_push_compensate")
public class KuaiDi100PushCompensate extends EntityBase {

    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 子订单号
     */
    private String subOrderNo;
    /**
     * 物流编号
     */
    @Indexed
    private String number;
    /**
     * 收件人手机号
     */
    private String phone;
    /**
     * 收件人地址
     */
    private String to;

    /**
     * 发件人地址
     */
    private String from;

    /**
     * 1、未成功 2、已成功
     */
    private Integer status =1;

    private Integer count =0;

    /**
     * 物流公司
     */
    private String logisticsCompany;

    /**
     * 错误信息
     */
    private SubscribeResp subscribeResp;

}
